# 跑步计划
from datetime import *


def jogging_plan():
    start = date(2023, 1, 1)
    delta = timedelta(days=1)
    total = 0
    while start.year != 2024:
        # date_str = start.strftime("%m%d%w")
        month = start.month
        day = start.day
        wd = start.isoweekday()
        if month == 1 or day == 1 or (9 < day < 20) or day == 21 or day == 31 or wd == 1 or month > 9:
            total += 5
        else:
            total += 1
        start += delta
    return total


if __name__ == '__main__':
    print(jogging_plan())  # 1333
